<?php
/**
 * @var $form BootActiveForm
 */
?>
<div class="form">

    <?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
            'id'=>'flatcategory-form',
            'enableAjaxValidation'=>false,
            'type'=>'horizontal',
            'method'=>'post',
)); ?>

    <fieldset>
        <legend>Lakás kategória</legend>

        <div class="">
        <?php
            echo $form->textFieldRow($model, 'name');

            echo $form->textFieldRow($model, 'low', array('size'=>4, 'append'=>'m&sup2;'));

            echo $form->textFieldRow($model, 'high', array('size'=>4, 'append'=>'m&sup2;'));
        ?>
        </div>

    </fieldset>

      <div class="form-actions">

            <?php $this->widget('bootstrap.widgets.BootButton', array(
                    'buttonType'=>'submit',
                    'type'=>'primary',
                    'icon'=>'ok white',
                    'label'=>'Mentés',
		    ));

            echo cancelButton($this->linkToBlockUpdate($block));

            ?>
     </div>

     <?php

        $this->endWidget();

     ?>

</div>
